CREATE OR REPLACE PACKAGE "kesplus_platform"."kes_plus_pkg_http" AUTHID CURRENT_USER AS
	TOKEN_ TEXT;
	APP_CODE VARCHAR(32);
	MODULE_CODE VARCHAR(32);
	K_SERVER_HOST TEXT;
	K_SERVER_PORT TEXT;
	OPTIONS_ JSON;
	REQUEST_URL TEXT := 'http://%s:%s/kes/%s/%s%s'; 
    REQUEST_FULL_URL TEXT := 'http://%s:%s%s'; 
    FUNCTION GET(PATH TEXT,HEADERS JSON,ISFULL BOOLEAN DEFAULT FALSE) RETURN JSON ;
    FUNCTION POST(PATH TEXT,BODY_CONTENT JSON,HEADERS JSON,ISFULL BOOLEAN DEFAULT FALSE) RETURN JSON;
    FUNCTION PUT(PATH TEXT,BODY_CONTENT JSON,HEADERS JSON,ISFULL BOOLEAN DEFAULT FALSE) RETURN JSON;
    FUNCTION DELETE(PATH TEXT) RETURN JSON;
    FUNCTION URL(PATH TEXT,ISFULL BOOLEAN DEFAULT FALSE) RETURN TEXT;
    FUNCTION BUILD_HEADERS(HEADER_JSON json) RETURN JSON;
    FUNCTION RESULT(RESPONSE JSON) RETURN JSON;
END;

CREATE OR REPLACE PACKAGE BODY "kesplus_platform"."kes_plus_pkg_http" AS WRAPPED
JRg2h7P8/vjdlgRpsm7+Xpqrw/Ev+Loo/w1pYxpFFyw0vNi4lUKYv8jVSUrG
VwQOdPPbMoVu3SxHId6s3zggRbVrNDCAof1REDCND8ZaYm6Q9qXZM786SJEg
MGWX5BfuAcnjIB282a0DE/xTFQTTwrn6idkXjaZRVSU+5M6uhtghGtB5fgA3
5LSxBlP6Zbro9NuNrbSq6ajYD1wPAHdP8RAJ0fnFnDhPgRHTCof2iYPDK9ji
Vm9Wky7Pp9vujwvzC87G3EnFmk1QN1+JXjUqhRouZ7Hs3s4kpUL1UnThWqHY
AmNFMPPkzZFUmzSfYIXdmyhk7afxYofF/GPaUmja1UFSa14vK6GirMiunOvI
Dny/t03er4VXf23wm4GUFCmJF4uOcyrctldBgdJNwtAGa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